﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///Employee 的摘要说明
/// </summary>
public class Employee
{
    private int empID;
    private float currPay;
    private string fullName;
    public int ID//empID的属性
    {
        get { return empID; }
        set
        {
            empID = value;//可以在赋值之前自由地检查传入的值
        }
    }
    public string Name
    {
        get { return fullName; }
        set { fullName = value; }
    }
    public float Pay
    {
        get{return currPay;}
        set { currPay = value; }
    }
    public string employeeInfo        //通过get设置只读属性
    {
        get { return "编号：" + empID + "/名字：" + fullName + "/基本工资：" + currPay; }
    }
}
